<%@ page language="java" import="java.util.*,bookshop.config.VersionInfo" pageEncoding="UTF-8"%>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c' %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title></title>
    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/login.css"/>">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/form.css"/>">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/application.css"/>">
	
     <style>
	    #footer {
			border-top: #9DA67F 1px solid;
			FONT-SIZE: 12px;
			COLOR: #666666;
			width: 100%;
			text-align: center;
			margin-top: 50px;
			padding-top: 10px;
			margin-left: 35px;
			margin-right: 35px;
	    }
     </style>
  </head>
  
  <body>
   <center>
        <div id="login">
			 <div id="logo">
				<div id="logoIcon"></div>
			 </div>
	        <div id="validateData">
	              <form name="loginInfo" action="<c:url value="/securityMgr"/>" method="post" style="height: 100%;">
	                        <input type="hidden" name="act" value="login"/>
							<div style="margin-top: 20px;">
								<div style="margin: 5px;">
									管理帐号:
									<input type="text" maxlength="10" class="text" name="loginid" value="<c:if test="${not empty id}">${id}</c:if><c:if test="${empty id}">${param['loginid']}</c:if>" />
								</div>
								<div style="margin: 5px;">
									帐号密码:
									<input type="password" maxlength="10" class="text" name="loginpwd" value="<c:if test="${not empty pwd}">${pwd}</c:if>" />
								</div>
								<div>
								   <input type="checkbox" name="keep" value="true" <c:if test="${not empty id}">checked="checked"</c:if>/>是否保存登录信息
								</div>
								<div id="errorArea">
									<c:if test="${not empty errMsg}">
										<div id="operErr">
											${errMsg}
										</div>
									</c:if>
									<%--错误信息从底层抛上来,然后在这边显示--%>
							    </div>
								<div id="button">
									<input style="border: 1px solid #F17920; background: #F17920;"
										type="submit" value=" 登 入 " />
									&nbsp;
									<input style="border: 1px solid #F17920; background: #F17920;"
										type="reset" value=" 重 写 " />
								</div>
							</div>
				  </form>         
	        </div>			 
        </div>
     </center> 
     <div id="footer">
	     <%=VersionInfo.buildFooterStr()%>
 	 </div>
  </body>
</html>
